﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Member.aspx.cs" Inherits="Pages_Member" MasterPageFile="~/Admin/MasterPage.master" Title="成员管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="1264px" BoxWidth="440px" Url="MemberForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加成员</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvMember" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="UserName" HeaderText="用户名称" SortExpression="UserName" />
            <asp:BoundField DataField="Name" HeaderText="名称" SortExpression="Name" />
            <asp:BoundField DataField="Email" HeaderText="邮件" SortExpression="Email" />
            <asp:BoundField DataField="Gender" HeaderText="产生" SortExpression="Gender" />
            <asp:BoundField DataField="Type" HeaderText="类型" SortExpression="Type" />
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="Logo" HeaderText="日志" SortExpression="Logo" />
            <asp:BoundField DataField="Status" HeaderText="状态" SortExpression="Status" />
            <asp:BoundField DataField="Score" HeaderText="分数" SortExpression="Score" />
            <asp:BoundField DataField="Rank" HeaderText="" SortExpression="Rank" />
            <asp:BoundField DataField="MemberLevel" HeaderText="成员等级" SortExpression="MemberLevel" />
            <asp:BoundField DataField="PWQuestion" HeaderText="密码问题" SortExpression="PWQuestion" />
            <asp:BoundField DataField="PWAnswer" HeaderText="密码答案" SortExpression="PWAnswer" />
            <asp:BoundField DataField="LastLoginIP" HeaderText="最后登录地址" SortExpression="LastLoginIP" />
            <asp:BoundField DataField="LastLoginTime" HeaderText="最后登录时间" SortExpression="LastLoginTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="RegTime" HeaderText="注册时间" SortExpression="RegTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="RegIP" HeaderText="注册地址" SortExpression="RegIP" />
            <asp:BoundField DataField="LoginMD5" HeaderText="登录MD5" SortExpression="LoginMD5" />
            <asp:BoundField DataField="Prop1" HeaderText="属性1" SortExpression="Prop1" />
            <asp:BoundField DataField="Prop2" HeaderText="属性2" SortExpression="Prop2" />
            <asp:BoundField DataField="Prop3" HeaderText="属性3" SortExpression="Prop3" />
            <asp:BoundField DataField="Prop4" HeaderText="属性4" SortExpression="Prop4" />
            <asp:BoundField DataField="Prop5" HeaderText="属性5" SortExpression="Prop5" />
            <asp:BoundField DataField="Prop6" HeaderText="属性6" SortExpression="Prop6" />
            <asp:BoundField DataField="Prop7" HeaderText="属性7" SortExpression="Prop7" />
            <asp:BoundField DataField="Prop8" HeaderText="属性8" SortExpression="Prop8" />
            <asp:BoundField DataField="Prop9" HeaderText="属性9" SortExpression="Prop9" />
            <asp:BoundField DataField="Prop10" HeaderText="属性10" SortExpression="Prop10" />
            <asp:BoundField DataField="Prop11" HeaderText="属性11" SortExpression="Prop11" />
            <asp:BoundField DataField="Prop12" HeaderText="属性12" SortExpression="Prop12" />
            <asp:BoundField DataField="Prop13" HeaderText="属性13" SortExpression="Prop13" />
            <asp:BoundField DataField="Prop14" HeaderText="属性14" SortExpression="Prop14" />
            <asp:BoundField DataField="Prop15" HeaderText="属性15" SortExpression="Prop15" />
            <asp:BoundField DataField="Prop16" HeaderText="属性16" SortExpression="Prop16" />
            <asp:BoundField DataField="Prop17" HeaderText="属性17" SortExpression="Prop17" />
            <asp:BoundField DataField="Prop18" HeaderText="属性18" SortExpression="Prop18" />
            <asp:BoundField DataField="Prop19" HeaderText="属性19" SortExpression="Prop19" />
            <asp:BoundField DataField="Prop20" HeaderText="属性20" SortExpression="Prop20" />
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="MemberForm.aspx?ID={0}" Height="1264px" Text="编辑" Width="440px" Title="编辑成员">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.Sys.Member"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.Sys.Member">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>